﻿namespace Sgr.EventBus
{
    /// <summary>
    /// 自定义集成事件特性，用于标记集成事件的契约名称
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class IntegrationEventAttribute : Attribute
    {
        public string ContractName { get; }

        public IntegrationEventAttribute(string contractName)
            => ContractName = contractName;
    }
}